all: main.o player.o
	g++ -o MonsterSDL main.o player.o -lSDL -lSDL_image -lSDL_gfx

optimized: main.o player.o
	g++ -o MonsterSDL main.o player.o -lSDL -lSDL_image -lSDL_gfx -O2
	
x86: main.o player.o
	g++ -m32 -o MonsterSDL main.o player.o -lSDL -lSDL_image -lSDL_gfx

main.o: main.cpp Monster.h player.h Timer.h
	g++ -c main.cpp -lSDL -lSDL_image -lSDL_gfx

player.o: player.cpp player.h sprite.h
	g++ -c player.cpp
